package com.ardf.entity.dto;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ardf.common.LocalTimeToStringSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalTime;

@Setter
@Getter
@EqualsAndHashCode
public class DownloadResultPersonTableDto {
    @ExcelProperty("名次")
    private Integer rank;
    @ExcelProperty("指卡号")
    private String cardNum;
    @ExcelProperty("姓名")
    private String name;
    @ExcelProperty("组别")
    private String groupName;
    @ExcelProperty("参赛单位")
    private String unitName;
    @ExcelProperty("总用时")
    private String timeStr;
    @ExcelProperty("有效台数")
    private Integer routeNum;

    @ExcelIgnore
    @JsonSerialize(using = LocalTimeToStringSerializer.class)
    private LocalTime time;
    @ExcelProperty("成绩备注")
    private String statusStr;
    @ExcelIgnore
    private Byte status;

}
